import request from '@/utils/request'

// 获取路由
export const getGraph1 = (startTime,endTime) => {
  return request({
    url: '/article/article/articleOriginDateCount',
    method: 'get',
    params:{startTime,endTime}
  })
}

// 获取按部门统计的图表数据
export const getGraph1ByDept = (startTime,endTime) => {
  return request({
    url: '/article/article/deptArticleCount',
    method: 'get',
    params:{startTime,endTime}
  })
}

// 获取第二个图表数据，支持指定分局
export const getGraph2 = (startTime,endTime,deptName) => {
  return request({
    url: 'article/article/articleCountByColumn',
    method: 'get',
    params:{startTime,endTime,deptName}
  })
}

// 获取分局列表
export const getDeptList = () => {
  return request({
    url: 'article/article/deptList',
    method: 'get'
  })
}

// 获取用户权限信息
export const getUserPermission = () => {
  return request({
    url: 'article/article/userPermission',
    method: 'get'
  })
}
